<?php
namespace app\index\controller;
use think\Controller;
use think\Session;
use think\Db;
use app\index\controller\Base;
class About extends Base{
	//大热新品页
    public function index(){
      $lid=input('lid');
      // var_dump($lid);
      // exit;
      $dr=db('article')->alias('a')
      ->join('cate b','a.cateid=b.id')
      ->field('a.id,a.title,a.duction,a.des,a.pic')
      ->where('cateid',$lid)
      ->select();
      // var_dump($dr);
      // exit;
      $this->assign('dr',$dr);
		return $this->fetch('about');
    }
    public function inds(){
      $lid=input('coid');
      // var_dump($lid);
      // exit;
      $dr=db('article')->alias('a')
      ->join('cate b','a.cateid=b.id')
      ->field('a.id,a.title,a.duction,a.des,a.pic')
      ->where('cateid',$lid)
      ->select();
      // var_dump($dr);
      // exit;
      $this->assign('dr',$dr);
		return $this->fetch('about1');
    }
	
}